package com.copa.module.system.mapper;

import com.copa.module.system.domain.dto.TradeDto;
import com.copa.module.system.domain.entity.TradeEntity;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

/**
 * @author copa
 * @createDate 2021-02-26
 * @function t_trade表 Mapper 接口
 */
@Mapper
public interface TradeDao extends BaseMapper<TradeEntity> {

    List<TradeDto> findTradeByDays(@Param("startTime") LocalDate startTime, @Param("endTime") LocalDate endTime, @Param("type") String type);
}
